package pattern.state

/**
 * 状态A
 */
class ConcreteStateA extends State{
  override def handle(context: Context): Unit = {
    println("stateA now...")
    context.setState(context.stateB)
  }
}
